package com.hw.springcloud.contoller;

import com.hw.springcloud.service.IMessageProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname: IMessageController
 * @Description: 发送消息控制器
 * @Date: 2021/12/3
 * @Author: HuWei
 */
@Slf4j
@RestController
@RequestMapping("/IMessage")
public class IMessageController {

    @Autowired
    private IMessageProvider iMessageProvider;

    /**
     * 发送消息
     * @return
     */
    @GetMapping("/sengMessage")
    public String sendMessage(){
        return iMessageProvider.sendMessage();
    }
}
